package com.awifi.demo.netty.move;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/9/10 19:25
 */
public class LeftMoveTest {
    public static void main(String[] args) {
        int num = 12;
        int num1 = 5;
        int num3 = 12 & 5;
        int num4 = 12 | 5;

        System.out.println("num3:"+num3);
        System.out.println(Integer.toBinaryString(num3));

        System.out.println("num4:"+num4);
        System.out.println(Integer.toBinaryString(num4));

        int leftResult = num << 2;
        System.out.println(leftResult);
        System.out.println(Integer.toBinaryString(leftResult));

        int rightResult = num >> 1;
        System.out.println(Integer.toBinaryString(rightResult));

        int threeRight = num >>> 1;
        System.out.println(threeRight);



    }
}
